<Applications>
	<Application Name="ApplicationWAPI" Type="LIBRARY" LibraryFile="ApplicationWAPI">
		<Functions>
			<Function Name="PrepareProcess">
				<Parameters>
					<Parameter Name="Workflow" Type="STRING" Mandatory="YES"></Parameter>
				</Parameters>
				<Result>
					<Parameters>
						<Parameter Name="ProcessID" Type="INTEGER" Mandatory="YES"></Parameter>
					</Parameters>
				</Result>
			</Function>
		</Functions>
	</Application>

	<Application Name="MathFunctions" Type="LIBRARY" LibraryFile="MathFunctions">
	<Functions>
		<Function Name="Add">
			<Parameters>
				<Parameter Name="Operator1" Type="STRING" Mandatory="YES"></Parameter>
				<Parameter Name="Operator2" Type="STRING" Mandatory="YES"></Parameter>
			</Parameters>
			<Result>
				<Parameters>
					<Parameter Name="Result" Type="STRING"></Parameter>
				</Parameters>
			</Result>
		</Function>
		<Function Name="Sub">
			<Parameters>
				<Parameter Name="Operator1" Type="STRING" Mandatory="YES"></Parameter>
				<Parameter Name="Operator2" Type="STRING" Mandatory="YES"></Parameter>
			</Parameters>
			<Result>
				<Parameters>
					<Parameter Name="Result" Type="STRING"></Parameter>
				</Parameters>
			</Result>
		</Function>
		<Function Name="Mul">
			<Parameters>
				<Parameter Name="Operator1" Type="STRING" Mandatory="YES"></Parameter>
				<Parameter Name="Operator2" Type="STRING" Mandatory="YES"></Parameter>
			</Parameters>
			<Result>
				<Parameters>
					<Parameter Name="Result" Type="STRING"></Parameter>
				</Parameters>
			</Result>
		</Function>
		<Function Name="Div">
			<Parameters>
				<Parameter Name="Operator1" Type="STRING" Mandatory="YES"></Parameter>
				<Parameter Name="Operator2" Type="STRING" Mandatory="YES"></Parameter>
			</Parameters>
			<Result>
				<Parameters>
					<Parameter Name="Result" Type="STRING"></Parameter>
				</Parameters>
			</Result>
		</Function>
		<Function Name="Sqrt">
			<Parameters>
				<Parameter Name="Operator1" Type="STRING" Mandatory="YES"></Parameter>
			</Parameters>
			<Result>
				<Parameters>
					<Parameter Name="Result" Type="STRING"></Parameter>
				</Parameters>
			</Result>
		</Function>
		<Function Name="Pot">
			<Parameters>
				<Parameter Name="Operator1" Type="STRING" Mandatory="YES"></Parameter>
				<Parameter Name="Operator2" Type="STRING" Mandatory="YES"></Parameter>
			</Parameters>
			<Result>
				<Parameters>
					<Parameter Name="Result" Type="STRING"></Parameter>
				</Parameters>
			</Result>
		</Function>
		<Function Name="Int">
			<Parameters>
				<Parameter Name="Operator1" Type="STRING" Mandatory="YES"></Parameter>
			</Parameters>
			<Result>
				<Parameters>
					<Parameter Name="Result" Type="STRING"></Parameter>
				</Parameters>
			</Result>
		</Function>
	</Functions>
	</Application>

	<Application Name="FOP" Type="EXTERNAL_PROCESS" LibraryFile="Fop.bat">
		<Functions>
			<Function Name="CreatePDF">
				<Parameters>
					<Parameter Name="DIR_IN" Type="DirFop" Mandatory="YES"></Parameter>
					<Parameter Name="DIR_OUT" Type="DirFop" Mandatory="YES"></Parameter>
					<Parameter Name="XML_FILE" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="XSL_FILE" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="PDF_FILE" Type="STRING" Mandatory="YES"></Parameter>
				</Parameters>
				<Result>
					<Parameters>
					</Parameters>
				</Result>
			</Function>
		</Functions>
	</Application>
	
	<Application Name="DocumentManager" Type="EXECUTABLE" LibraryFile="Scenario.DocumentManagement.Application">
		<ExtendedAttributes>
			<ExtendedAttribute Name="Type" Value="EXE"></ExtendedAttribute>
		</ExtendedAttributes>
		<Port>20100</Port>
		<Host>127.0.0.1</Host>
		<Functions>
			<Function Name="GetNumberRow" Type="SCRIPT" >
				<Parameters>
					<Parameter Name="Operator1" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="Operator2" Type="NUMBER" Mandatory="YES"></Parameter>
				</Parameters>
				<Result>
					<Parameters>
						<Parameter Name="NrRow" Type="INTEGER">
						<Value>intero([Operator1]&#43;[Operator2])</Value>
						</Parameter>
					</Parameters>
				</Result>
			</Function>
			<Function Name="CreateDocument">
				<Parameters>
					<Parameter Name="IdMaster" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="DocumentName" Type="STRING" Mandatory="YES"></Parameter>
				</Parameters>
				<Result>
					<Parameters>
						<Parameter Name="IdDocument" Type="STRING"></Parameter>	
						<Parameter Name="DocumentVersion" Type="STRING"></Parameter>	
					</Parameters>
				</Result>
			</Function>
			<Function Name="AttachFile">
				<Parameters>
					<Parameter Name="IdMaster" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="DocumentName" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="FilePath" Type="DirFop" Mandatory="YES"></Parameter>
					<Parameter Name="FileName" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="FileExtension" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="Migrable" Type="STRING" Mandatory="YES"></Parameter>
				</Parameters>
				<Result>
				</Result>
			</Function>
			<Function Name="ExportPCM2PDF">
				<Parameters>
					<Parameter Name="DocumentPath" Type="MillepianiDir" Mandatory="YES"></Parameter>
					<Parameter Name="IdMaster" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="DocumentName" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="ProcessId" Type="Number" Mandatory="YES"></Parameter>
				</Parameters>
				<Result>
				</Result>
			</Function>
			<Function Name="ExportPCM2PDFWithoutAttach">
				<Parameters>
					<Parameter Name="DocumentPath" Type="MillepianiDir" Mandatory="YES"></Parameter>
					<Parameter Name="IdMaster" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="ProcessId" Type="Number" Mandatory="YES"></Parameter>
				</Parameters>
				<Result>
				<Parameters>
				<Parameter Name="Proposal" Type="STRING"></Parameter>	
				</Parameters>
				</Result>
			</Function>
			</Functions>
	</Application>	
	<Application Name="SMTPHelper" Type="LIBRARY" LibraryFile="SMTPHelper">
		<Functions>
			<Function Name="Send">
				<Parameters>
					<Parameter Name="To" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="Cc" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="Bcc" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="UserTo" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="UserCc" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="UserBcc" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="RoleTo" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="RoleCc" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="RoleBcc" Type="STRING" Mandatory="NO"></Parameter>					
					<Parameter Name="Subject" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="Body"  Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="Attach"  Type="STRING" Mandatory="NO"></Parameter>
				</Parameters>
				<Result>
					<Parameters>
					</Parameters>
				</Result>
			</Function>
			<Function Name="SendHTML">
				<Parameters>
					<Parameter Name="To" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="Cc" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="Bcc" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="UserTo" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="UserCc" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="UserBcc" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="RoleTo" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="RoleCc" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="RoleBcc" Type="STRING" Mandatory="NO"></Parameter>	
					<Parameter Name="Attach"  Type="STRING" Mandatory="NO"></Parameter>				
					<Parameter Name="Subject" Type="EmailSubject" Mandatory="YES"></Parameter>
					<Parameter Name="Body"  Type="EmailBody" Mandatory="NO"></Parameter>
				</Parameters>
				<Result>
					<Parameters>
					</Parameters>
				</Result>
			</Function>
			<Function Name="Message">
				<Parameters>
					<Parameter Name="To" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="Cc" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="Bcc" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="UserTo" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="UserCc" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="UserBcc" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="RoleTo" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="RoleCc" Type="STRING" Mandatory="NO"></Parameter>
					<Parameter Name="RoleBcc" Type="STRING" Mandatory="NO"></Parameter>					
					<Parameter Name="Subject" Type="EmailSubject" Mandatory="YES">[Subject1]</Parameter>
					<Parameter Name="Body"  Type="EmailBody" Mandatory="NO">[Body1]</Parameter>
					<Parameter Name="Attach"  Type="STRING" Mandatory="NO"></Parameter>
				</Parameters>
				<Result>
					<Parameters>
					</Parameters>
				</Result>
			</Function>
		</Functions>
	</Application>

	<Application Name="CriteriaComponent" Type="LIBRARY" LibraryFile="CriteriaComponent">
		<Functions>
			<Function Name="GuideRailLength" Type="SCRIPT">
				<Parameters>
					<Parameter Name="Travel" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="Pit" Type="STRING" Mandatory="YES"></Parameter>
				</Parameters>
				<Result>
					<Parameters>
						<Parameter Name="Result" Type="STRING"><Value>[Travel]+[Pit]</Value></Parameter>
					</Parameters>
				</Result>
			</Function>
			<Function Name="MakeSlaves">
				<Parameters>
					<Parameter Name="IdMaster" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="NrSlaves" Type="INTEGER" Mandatory="YES"></Parameter>
				</Parameters>
				<Result>
					<Parameters>
					</Parameters>
				</Result>
			</Function>
			<Function Name="GetSlave">
				<Parameters>
					<Parameter Name="IdMaster" Type="STRING" Mandatory="YES"></Parameter>
				</Parameters>
				<Result>
					<Parameters>
						<Parameter Name="IdSlave" Type="INTEGER"></Parameter>
					</Parameters>
				</Result>
			</Function>
			<Function Name="ReleaseSlave">
				<Parameters>
					<Parameter Name="IdMaster" Type="STRING" Mandatory="YES"></Parameter>
					<Parameter Name="IdSlave" Type="INTEGER" Mandatory="YES"></Parameter>
				</Parameters>
				<Result>
					<Parameters>
						<Parameter Name="AllReleased" Type="INTEGER" Mandatory="YES"></Parameter>
					</Parameters>
				</Result>
			</Function>
			<Function Name="NoSlave">
				<Parameters>
					<Parameter Name="IdMaster" Type="STRING" Mandatory="YES"></Parameter>
				</Parameters>
				<Result>
					<Parameters>
						<Parameter Name="AllReleased" Type="INTEGER" Mandatory="YES"></Parameter>
					</Parameters>
				</Result>
			</Function>
			<Function Name="StartKPI">
				<Parameters>
					<Parameter Name="ID" Type="INTEGER" Mandatory="YES" />
					<Parameter Name="KPI" Type="STRING" Mandatory="YES" />
					<Parameter Name="Value" Type="STRING" Mandatory="NO" />
				</Parameters>
				<Result>
					<Parameters>
					</Parameters>
				</Result>
			</Function>
			<Function Name="StopKPI">
				<Parameters>
					<Parameter Name="ID" Type="INTEGER" Mandatory="YES" />
					<Parameter Name="KPI" Type="STRING" Mandatory="YES" />
					<Parameter Name="Value" Type="STRING" Mandatory="NO" />
				</Parameters>
				<Result>
					<Parameters>
					</Parameters>
				</Result>
			</Function>
		</Functions>
	</Application>	
</Applications>